home *** CD-ROM | disk | FTP | other *** search
- Path: usenet.eel.ufl.edu!pacifier!usenet
- From: dgager@pacifier.com (Dave Gager)
- Newsgroups: comp.lang.c++
- Subject: Quick and Dirty Date Function
- Date: 16 Jan 1996 04:52:10 GMT
- Organization: Pacifier Internet Server (360) 693-0325
- Message-ID: <4dfatq$fec@news.pacifier.com>
- Reply-To: dgager@pacifier.com
- NNTP-Posting-Host: ip61.van2.pacifier.com
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.99.2
-
- Does anybody know of, or have, a quick & dirty function that takes two
- dates and returns the EXACT number of days between them (inclusive).
- Preferrably, it should not need any maintenence after the year 2000,
- (i.e. using a "yy -= 1900" should not be an option as this will create
- the illusion of the year 2001 occuring BEFORE 1999! This would be not
- good.) I thought I would see if someone else did the legwork before
- attempting the "if (month = 31 || month = 30) " or if(leapyear) etc.
- Call me lazy...... ;-)
- E-Mail dgager@pacifier.com with any help. TIA!
- -Dave
- --
- -------------------------------------------------------------------------
- -----
- Pacifier Online Data Service Dialup SLIP/PPP User
- To register: (360) 693-0325 or telnet pods.pacifier.com
- -------------------------------------------------------------------------
- -----
-
-